import request from '@/utils/request';

// 分页查询业务概况列表
export function queryBusinessOverviewListPage(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/business/overview/queryBusinessOverviewListPage',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 导出业务概况列表Excel文件
export function exportBusinessOverviewList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/business/overview/exportBusinessOverviewList',
		method: 'post',
		data: data,
		responseType: 'blob',
	});
}

// 导出步骤Excel文件
export function exportStepList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/business/overview/exportStepList',
		method: 'post',
		data: data,
		responseType: 'blob',
	});
}

// 全系统监控总览和业务监控详情的业务概况列表导出
export function exportBusinessList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/business/overview/exportBusinessOverviewListCopy',
		method: 'post',
		data: data,
		responseType: 'blob',
	});
}
